<%--
  Created by IntelliJ IDEA.
  User: shisjin
  Date: 2023/9/12
  Time: 16:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" info="《企业后端开发技术》" language="java" %>

<html>
<head>
    <title>Title</title>
</head>
<body>
<h1>第一个JSP程序</h1>
<%--<% Calendar calendar =Calendar.getInstance();--%>

%>

<h2>


    当前日期是：<%@include file="date.jsp"%>
<%--  <%=calendar.get(Calendar.YEAR)%>-<%=calendar.get(Calendar.MONTH)%>-<%=calendar.get(Calendar.DAY_OF_MONTH)%>--%>
</h2>
<%
    System.out.println("hello,jsp~");
    int i = 3;
%>
<%--定义变量--%>
<%
    int a =100;
%>
<%--方法或全局变量--%>
<%!
   void show(){}

   int b = 1000;

%>
<%-- 输出--%>
<%=b %>
</body>
</html>
